﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class WXCardCodeLogInfoConfig : EntityTypeConfiguration<WXCardCodeLogInfo>
    {
        public WXCardCodeLogInfoConfig()
        {
            ToTable("Himall_WXCardCodeLog");
            Property(item => item.CardId).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Code).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.OpenId).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.Himall_WXCardLog).WithMany(x => x.Himall_WXCardCodeLog).HasForeignKey(x => x.CardLogId);
        }
    }
}
